package com.example.registerstarter.anno;

import com.example.registerstarter.config.RpcAutoConfiguration;
import com.example.registerstarter.config.RpcImportSelector;
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Retention 默认策略是 RetentionPolicy.SOURCE 级别，所以该注解必须标记是运行期间保留
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import({RpcAutoConfiguration.class})
public @interface EnableRPC {
}
